﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>销售管理系统</title>
    <script type="text/javascript">
        //初始化左侧
        function InitLeftMenu() {
            $.ajax({ url: "../ashx_ui/ui_leftmenu.ashx",
                type: "POST",
                dataType: "json",
                success: function (_menus) {

                    $("#westreg").empty();
                    var menulist = "";
                    menulist += '<div class="easyui-accordion" fit="true" border="false">';
                    $.each(_menus.menus, function (i, n) {
                        menulist += '<div title="' + n.menuname + '" data-options="iconCls:\'' + n.icon + '\'" style="overflow: auto; padding: 5px;">';
                        menulist += '<ul>';
                        $.each(n.menus, function (j, o) {
                            menulist += '<li><div><a href="###" rel="' + o.url + '" ref="' + o.menuid + '"><span class="' + o.icon + '" style="width: 16px; display: inline-block">&nbsp;</span><span class="nav">' + o.menuname + '</span></a></div></li>';
                        })
                        menulist += '</ul></div>';
                    })
                    menulist += '</div>';
                    $("#westreg").append(menulist);

                    $('.easyui-accordion li a').click(function () {
                        var tabTitle = $(this).children('.nav').text();

                        var url = $(this).attr("rel");
                        var menuid = $(this).attr("ref");
                        var icon = $(this).children('span').first().attr('class');
                        addTab(tabTitle, url, icon);
                        $('.easyui-accordion li div').removeClass("selected");
                        $(this).parent().addClass("selected");
                    }).hover(function () {
                        $(this).parent().addClass("hover");
                    }, function () {
                        $(this).parent().removeClass("hover");
                    });

                    //导航菜单绑定初始化
                    $(".easyui-accordion").accordion();
                },
                error: function (xhr, status) {
                    if (xhr.responseText == "nosession") {
                        $.relogin();
                    }
                }
            })

        }
    </script>
</head>
<body>
    <!--左边菜单开始-->
        <div class="left_c left">
            <h1>系统操作菜单</h1>
            <div class="acc" id="leftmenu">
                <div>
                    <a class="one">查询界面</a>
                    <ul class="kid">
                        <li><b class="tip"></b><a target="Conframe" href="Template/find-form.html">表单样式</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/find-alert.html">弹出窗口</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/find-order.html">查询排序</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/find-1.html">查询结果一</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/find-2.html">查询结果二</a></li>
                    </ul>
                </div>
                <div>
                    <a class="one">维护界面</a>
                    <ul class="kid">
                        <li><b class="tip"></b><a target="Conframe" href="Template/Maintain-add.html">增加</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/Maintain-edit.html">修改</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/Maintain-del.html">删除</a></li>
                    </ul>
                </div>
                <div>
                    <a class="one">表单风格</a>
                    <ul class="kid">
                        <li><b class="tip"></b><a target="Conframe" href="Template/form-Master-slave.html">主从表单</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/form-collapse.html">折叠表单</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/form-tabs.html">标签式表单</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/form-tree.html">树+表单</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/form-guide.html">向导</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/form-tabs-list.html">标签页+列表</a></li>
                    </ul>
                </div>
                <div>
                    <a class="one">提示</a>
                    <ul class="kid">
                        <li><b class="tip"></b><a target="Conframe" href="Template/Alert.html">权限提示</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/Alert.html">出错提示</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/Alert.html">警告提示</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/Alert.html">询问提示</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/Alert.html">对话框一</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/Alert.html">对话框二</a></li>
                    </ul>
                </div>
                <div>
                    <a class="one">辅助信息</a>
                    <ul class="kid">
                        <li><b class="tip"></b><a target="Conframe" href="Template/order.html">采购订单</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/formstyle.html">数据说明</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/formstyle.html">操作记录</a></li>
                        <li><b class="tip"></b><a target="Conframe" href="Template/formstyle.html">提示</a></li>
                    </ul>
                </div>
                <div id="datepicker"></div>
            </div>

        </div>
        <!--左边菜单结束-->
</body>
</html>
